package com.yhp.dao;

import com.yhp.bean.Role;
import java.util.List;

public interface RoleDao {
    public List<Role> getRoleList(int pageIndex, int pageSize);
    public int total();
    public int insert(Role role);
    public Role findbyid(int roleid);

    public List<Role> getList();
    public Role findById(int rid);
    public int updateRole(Role role);
    public int delRole(String sid);
    public int statRole(int rid, int state);
}
